// 将时间戳转换为时间
function chengeStamp(t) {
    var date = new Date(t * 1); // 这里将毫秒数乘于 1 转换为int
    let Y = date.getFullYear() + "-";
    let M =
        (date.getMonth() + 1 < 10
            ? "0" + (date.getMonth() + 1)
            : date.getMonth() + 1).toString().padStart(2,'0') + "-";
    let D = date.getDate().toString().padStart(2,'0') + " ";
    let h = date.getHours().toString().padStart(2,'0') + ":";
    let m = date.getMinutes().toString().padStart(2,'0') + ":";
    let s = date.getSeconds().toString().padStart(2,'0');
    return Y + M + D + h + m + s;
}



export { chengeStamp };
